#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
int main()
{
    int n = 0;
    scanf("%d", &n);
    getchar();
    double a = 0;
    double max = 0;
    double min = 100;
    double ave = 0;
    double sum = 0;
    for (int i = 0; i < n; i++)
    {
        scanf("%lf", &a);
        if (a > max)
            max = a;
        if (a < min)
            min = a;
        sum += a;
    }
    ave = sum * 1.0 / n;
    printf("%.2f %.2f %.2f\n", max, min, ave);

    return 0;
}